<?php

    class ServiceRuntimeException extends Exception
    {
        private $methodName = "";
        private $methodExecuteInfo = array();

        public function __construct($methodName, $methodExecuteInfo = array())
        {
            $this->methodName = $methodName;
            $this->methodExecuteInfo = $methodExecuteInfo;
            
            parent::__construct("Service error in {$methodName} method.");
        }
        
        /**
         * @return array
         */
        public function getMethodExecuteInfo()
        {
            return $this->methodExecuteInfo;
        }
        
        /**
         * @return string
         */
        public function getMethodName()
        {
            return $this->methodName;
        }
    }

?>